/ BBS in a Box 15
/ BBS in a box XV-2.iso / Files II / Prog / T / Think C dcmd 1.0.1.sit / Think C dcmd 1.0.1 ƒ / Think Put Lib source / __HexToText.c ![]() | < prev | next > |
MacBinary | 1994-06-12 | 768 b | [TEXT/KAHL] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | Compact Compressed (Unix) (archive/compact) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Sun Jun 12 14:54:36 1994, modified Sun Jun 12 14:54:36 1994, creator Think C, type ASCII, 247 bytes "__HexToText.c" , at 0x177 382 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [KAHL] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 5f 5f 48 65 78 54 | 6f 54 65 78 74 2e 63 00 |..__HexT|oText.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 00 f7 00 | 00 01 7e aa 21 0a 6c aa |........|..~.!.l.|
|00000060| 21 0a 6c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |!.l.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7c 71 00 00 |........|....|q..|
|00000080| 76 6f 69 64 20 5f 5f 48 | 65 78 54 6f 54 65 78 74 |void __H|exToText|
|00000090| 20 28 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 | (unsign|ed long |
|000000a0| 68 65 78 2c 20 63 68 61 | 72 2a 20 73 74 72 2c 20 |hex, cha|r* str, |
|000000b0| 73 68 6f 72 74 20 73 69 | 7a 65 20 20 2f 2a 20 30 |short si|ze /* 0|
|000000c0| 3d 77 6f 72 64 2c 20 31 | 3d 6c 6f 6e 67 20 2a 2f |=word, 1|=long */|
|000000d0| 20 29 0d 7b 0d 09 09 69 | 6e 74 09 09 20 6e 2c 20 | ).{...i|nt.. n, |
|000000e0| 6c 65 6e 3b 0d 09 09 63 | 68 61 72 2a 09 20 64 69 |len;...c|har*. di|
|000000f0| 67 69 74 73 20 3d 20 22 | 30 31 32 33 34 35 36 37 |gits = "|01234567|
|00000100| 38 39 41 42 43 44 45 46 | 22 3b 0d 09 0d 09 6c 65 |89ABCDEF|";....le|
|00000110| 6e 20 3d 20 73 69 7a 65 | 20 3f 20 38 2d 31 20 3a |n = size| ? 8-1 :|
|00000120| 20 34 2d 31 3b 0d 09 0d | 09 66 6f 72 20 28 20 6e | 4-1;...|.for ( n|
|00000130| 20 3d 20 6c 65 6e 3b 20 | 6e 20 3e 3d 20 30 3b 20 | = len; |n >= 0; |
|00000140| 6e 2d 2d 20 29 0d 09 7b | 0d 09 09 73 74 72 5b 6e |n-- )..{|...str[n|
|00000150| 5d 20 3d 20 64 69 67 69 | 74 73 5b 68 65 78 20 25 |] = digi|ts[hex %|
|00000160| 20 31 36 5d 3b 0d 09 09 | 68 65 78 20 2f 3d 20 31 | 16];...|hex /= 1|
|00000170| 36 3b 0d 09 7d 0d 7d 00 | 00 00 00 00 00 00 00 00 |6;..}.}.|........|
|00000180| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000190| fe 00 03 ff f0 00 00 01 | ff 00 31 06 ff ff fe 00 |........|..1.....|
|000001a0| 00 01 f8 fc 00 25 03 fe | 00 07 ff ff 00 03 ff fe |.....%..|........|
|000001b0| 0d 5f 5f 48 65 78 54 6f | 54 65 78 74 2e 63 02 00 |.__HexTo|Text.c..|
|000001c0| 02 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|000001d0| 02 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 aa 20 c4 19 00 00 | 00 f7 00 00 01 7e fe ff |... ....|.....~..|
|00000200| 21 f8 00 01 f8 00 1f ff | ff 00 03 fe 00 07 ff ff |!.......|........|
|00000210| 00 03 ff fe 00 07 ff ff | f8 00 1f ff e0 00 7f c0 |........|........|
|00000220| 00 ff c0 fe 00 09 fe 00 | 01 ff f0 00 00 01 ff 00 |........|........|
|00000230| 32 fe ff 21 fe 00 01 f8 | 00 1f ff ff 00 03 fe 00 |2..!....|........|
|00000240| 07 ff ff 00 03 ff fe 00 | 07 ff ff f8 00 1f ff e0 |........|........|
|00000250| 00 7f c0 00 ff e0 fe 00 | 09 ff 00 01 ff f0 00 00 |........|........|
|00000260| 01 ff 00 31 fd ff 20 00 | 01 f8 00 1f ff ff 00 03 |...1.. .|........|
|00000270| fe 00 03 ff fe 00 03 ff | fe 00 07 ff ff f8 00 1f |........|........|
|00000280| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|000002b0| 02 7d 00 52 00 3c 01 dc | 02 6c aa 20 c4 1e 00 00 |.}.R.<..|.l. ....|
|000002c0| 00 f7 00 00 00 f7 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|000002d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 82 48 50 |...L...L|...2..HP|
|000002e0| 12 5e 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.^.....2|..MPSR..|
|000002f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 82 46 28 00 00 |........|....F(..|
+--------+-------------------------+-------------------------+--------+--------+